package com.tw101.module1;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int factorCount = 0;
        int lines = 3;

        System.out.println("Horizontal line:");
        System.out.println(Triangle.horizontalLine(lines));
        System.out.println("\nVertical line:");
        System.out.println(Triangle.verticalLine(lines));
        System.out.println("\nRight Triangle:");
        System.out.println(Triangle.rightTriangle(lines));
        System.out.println("\nIsosceles Triangle:");
        System.out.println(Triangle.isoscelesTriangle(lines));
        System.out.println("\nDiamond:");
        System.out.println(Diamond.diamond(lines));
        System.out.println("\nDiamond with name:");
        System.out.println(Diamond.diamondName(lines, "Yvan"));
        System.out.println("\nFizzBuzz:");
        System.out.println(FizzBuzz.FizzBuzz(100));
        System.out.println("\nPrime generation:");
        for(Integer i : Prime.generate(30)) {
            if(factorCount != 0) {
                System.out.print(",");
            }
            System.out.print(i);
            factorCount++;
        }
    }
}
